/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package estg.dae.projecto.bank.data;

import estg.dae.projecto.bank.model.Account;
import java.util.Collection;

/**
 *
 * @author Marco
 */
public interface AccountDaoLocal {

    void delete(Account account);

    boolean existsNib(String nib);
    
    boolean existsNumber(long number);

    Account get(long id);
    
    Account getByNib(String nib);
    
    Account getByNumber(long number);

    Collection<Account> getAll();

    Collection<Account> getAll(long clientId);

    void save(Account account);

    void update(Account account);

    public long getNextAccountNumber(int accountType);
}
